package net.wanho.zaixian.cms.controller;

import net.wanho.zaixian.cms.dao.CmsConfigDao;
import net.wanho.zaixian.pojo.cms.CmsConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class CmsConfigController {
    @Resource
    CmsConfigDao cmsConfigDao;
    @GetMapping("/cms/cmsconfig/get/{id}")
    public CmsConfig get(@PathVariable("id") String id ){
        CmsConfig cmsConfig=cmsConfigDao.findById(id).get();

        return cmsConfig;
    }
}